package com.dongqi.deviceData.position.controller;

import com.dongqi.deviceData.position.service.PositionService;
import com.dongqi.utils.RestResult;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@Slf4j
@RestController
@RequestMapping(value = "/position")
public class PositionController {
    @Autowired
    private PositionService positionService;

    @GetMapping("/query")
    public RestResult query() {
        List<Object> list = positionService.queryAll();
        return RestResult.success(list);
    }
}
